package application.controller;

import application.adapter.ListAdapter;
import javafx.fxml.FXML;
import javafx.scene.control.Label;

public class ListItem implements ListAdapter.ListViewController<ListDemo.Entry> {

    @FXML
    private Label id, key, value, extra, remark;

    @Override
    public void initialize(ListDemo.Entry entry) {
        this.id.setText(String.valueOf(entry.getId()));
        this.key.setText(entry.getKey());
        this.value.setText(entry.getValue());
        this.extra.setText(entry.getExtra());
        this.remark.setText(entry.getRemark());
    }
}
